<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
             <%
             //将请求的编码与页面保持一致，设置为UTF-8
             request.setCharacterEncoding("UTF-8");
             //获取表单中name值为uname元素的value值
             String name=request.getParameter("uname");
             //获取表单中name值为upwd 元素的value值
             String  pwd=request.getParameter("upwd");
             //获取表单中，已选name值为hobby元素的value数组的值
             String[] hobbies=request.getParameterValues("hobby");
             %>
             您注册的信息如下：<br/>
             用户名：<%=name %><br/>
             密码：<%=pwd %><br/>
             爱好：
             <%
             if(hobbies!=null ){
            	 for(int i=0;i<hobbies.length;i++){
            		 out.print(hobbies[i]+"&nbsp");
            	 }
             }
             %>
</body>
</html>